package main

import "fmt"

func main() {

	var day int = 97
	fmt.Printf("星期=%v,天%v", day/7, day%7)

	var huashi float32 = 134.2
	var sheshi float32 = 5.0 / 9 * (huashi - 100)

	fmt.Printf("华氏温度==%v,摄氏温度==%v\n", huashi, sheshi)

	var a, b int = 1, 2

	a = a + b
	b = a - b

	a = a - b

	fmt.Printf("a=%v,b=%v\n", a, b)

	//位运算符 相同为零 不同为一

	a = a ^ b
	//10
	//01
	//11 =>3
	fmt.Println(a)
	b = a ^ b
	//11
	//01
	//10==>2
	fmt.Println(b)
	a = a ^ b
	//10
	//11
	//01==>1
	fmt.Println(a)
	fmt.Printf("a=%v,b=%v", a, b)

}
